it('utf8', () => {
    tests([
        [[108, 105, 99, 105, 97], 'licia'],
        [[228, 184, 173, 230, 150, 135], '中文']
    ]);
});

it('hex', () => {
    tests([[[168, 174, 155, 255], 'hex', 'a8ae9bff']]);
});

it('base64', () => {
    tests([[[168, 174, 155, 255], 'base64', 'qK6b/w==']]);
});
